package cn.lili.controller.feign.message;

import cn.lili.modules.message.client.WechatMessageClient;
import cn.lili.modules.wechat.service.WechatMessageService;
import cn.lili.modules.wechat.util.WechatMessageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ftyy
 * @date: 2022-01-14 9:52
 * @description: 微信消息Feign
 */
@RestController
public class WechatMessageFeignController implements WechatMessageClient {

    @Autowired
    private WechatMessageService wechatMessageService;

    @Autowired
    private WechatMessageUtil wechatMessageUtil;

    @Override
    public void init() {
        wechatMessageService.init();
    }

    @Override
    public void sendWechatMessage(String sn) {
        wechatMessageUtil.sendWechatMessage(sn);
    }

    @Override
    public void wechatMpMessage(String sn) {
        wechatMessageUtil.wechatMpMessage(sn);
    }
}
